package com.rayson.yututu.model.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: rayson
 * Description:
 * Version: 1.0
 * Date: 2025-01-06 21:30
 */
@Getter
@AllArgsConstructor
public enum PictureReviewStatusEnum {

    REVIEWING(0, "待审核"),
    PASS(1, "审核通过"),
    REJECT(2, "审核拒绝"),
    ;

    private final Integer status;

    private final String desc;

    public static PictureReviewStatusEnum getEnumByStatus(Integer status) {
        for (PictureReviewStatusEnum value : values()) {
            if (value.getStatus().equals(status)) {
                return value;
            }
        }
        return null;
    }
}
